﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GCELibrary.Current;

namespace ZF.WS.test
{
    public partial class _c1 : BLL.Page.GMPage
    {
 
        public string RoomKey { get; set; }
        /// <summary>
        /// 连接人的Id
        /// </summary>
        public int OMId { get; set; }
        public ZF.BLL.GeneralMember _member = null;
        public override ZF.BLL.GeneralMember CurrentUser
        {
            get
            {
                var obj = HttpSession.GetSession("_memberc");
                if (obj == null)
                {
                    HttpSession.SetSession("_memberc", new ZF.BLL.GeneralMember()
                    {
                        MemberId = 3,
                        Account = "Testclient3",
                    });
                    return CurrentUser;
                }
                return (ZF.BLL.GeneralMember)obj;
            }
        }
        protected override void CheckSafe()
        {

        }
        protected void Page_Load(object sender, EventArgs e)
        {
            BLL.OnLine.Reg(this.CurrentUser);
            OMId = 2;
            RoomKey = BLL.Chat.Call(this.CurrentUser, OMId).Key;

        }
    }
}
